/**
 *
 *
 */
$(function(){
	
	//
	$('#L_sign_in').unbind().click(function() {
		var param = {
			loginName: $('#L_username').val(),
			password: $('#L_password').val(),
		}
		apps.request({
			type: 'POST',
			url: urls.ctx + '/login/sign',
			data: param,
			success: function(res){
					console.log(res);
				if(res && res.code == 0) {
					// alert(res.msg);
					location.href = '/';
				} else {
					alert(res.msg);
				}
			},
			error: function() {
				
			}
		});
		return false;
	});
	
	
	
	
	

});
 

 
 
 